package com.evl.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dangsheng
 * @since 2017-07-04
 */
@TableName("wxpay_record")
public class WxPayRecord extends Model<WxPayRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户openid
     */
	@TableField("open_id")
	private String openId;
    /**
     * 订单主键
     */
	@TableField("order_id")
	private Integer orderId;
	private String orderNo;
    

	/**
     * 车票主键
     */
	@TableField("ticket_id")
	private Integer ticketId;
    /**
     * 支付类型：1购票，2退票
     */
	@TableField("pay_type")
	private Integer payType;
	private String payTypeStr;
    /**
     * 支付总金额
     */
	@TableField("total_fee")
	private Integer totalFee;
    /**
     * 支付状态：0待支付，1已支付，2支付异常
     */
	@TableField("pay_status")
	private Integer payStatus;
	private String payStatusStr;
    /**
     * 支付时间
     */
	@TableField("pay_time")
	private Date payTime;
    /**
     * 请求报文
     */
	@TableField("req_data")
	private String reqData;
    /**
     * 请求返回报文
     */
	@TableField("rsp_data")
	private String rspData;
    /**
     * 请求url
     */
	private String url;
    /**
     * 错误信息
     */
	private String error;
    /**
     * 请求时间
     */
	@TableField("req_time")
	private Date reqTime;
    /**
     * 请求响应时间
     */
	@TableField("rsp_time")
	private Date rspTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getTicketId() {
		return ticketId;
	}

	public void setTicketId(Integer ticketId) {
		this.ticketId = ticketId;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Integer getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(Integer totalFee) {
		this.totalFee = totalFee;
	}

	public Integer getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public String getReqData() {
		return reqData;
	}

	public void setReqData(String reqData) {
		this.reqData = reqData;
	}

	public String getRspData() {
		return rspData;
	}

	public void setRspData(String rspData) {
		this.rspData = rspData;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Date getReqTime() {
		return reqTime;
	}

	public void setReqTime(Date reqTime) {
		this.reqTime = reqTime;
	}

	public Date getRspTime() {
		return rspTime;
	}

	public void setRspTime(Date rspTime) {
		this.rspTime = rspTime;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getPayTypeStr() {
		return payTypeStr;
	}

	public void setPayTypeStr(String payTypeStr) {
		this.payTypeStr = payTypeStr;
	}

	public String getPayStatusStr() {
		return payStatusStr;
	}

	public void setPayStatusStr(String payStatusStr) {
		this.payStatusStr = payStatusStr;
	}
	
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	
}
